package com.rf.business.service.demo;

import java.util.List;
import java.util.Map;

import com.rf.business.model.demo.Demo;
import com.rf.sys.utils.PageUtils;



public interface DemoService{
	
	/**
	 * 根据id获取数据
	 * @param DemoId
	 * @return Demo
	 */
	public Demo getDemoByID(String id) throws Exception;
	
	/**
	 * 根据Demo获取数据
	 * @param Demo
	 * @return List<Demo>
	 */
	public List<Demo> getDemo(Demo Demo) throws Exception;
	
	/**
	 * 获取所有数据
	 * @param 
	 * @return List<Demo>
	 */
	public List<Demo> getDemo() throws Exception;
	
	/**
	 * 保存信息
	 * @param Demo
	 * @return
	 */
	public void addDemo(Demo Demo) throws Exception;
	
	/**
	 * 修改数据
	 * @param Demo
	 * @return
	 */
	public void updateDemo(Demo Demo) throws Exception;
	
	/**
	 * 删除数据
	 * @param DemoId
	 * @return
	 */
	public void deleteDemo(String id
) throws Exception;
	
	/**
	 * 获取数据分页
	 * @param Demo
	 * @param pageUtils
	 * @return Map
	 */
	public Map getDemoPage(Demo Demo,PageUtils pageUtils) throws Exception;
}
